<style lang="sass" scoped>
    .w-150{
        width:150px !important;
    }

</style>
<template>
    <div>
        <select v-model='categId1' class="form-control tiniestsize w-150 inline_block">
            <option value="">请选择</option>
            <option v-for="item in categId1s" value="{{item.categId}}" track-by="$index">{{item.categName}}</option>
        </select>
        <select v-model='categId2' class="form-control tiniestsize w-150 inline_block">
            <option value="">请选择</option>
            <option v-for="item in categId2s" value="{{item.categId}}" track-by="$index">{{item.categName}}</option>
        </select>
        <select v-model='categId3' class="form-control tiniestsize w-150 inline_block">
            <option value="">请选择</option>
            <option v-for="item in categId3s" value="{{item.categId}}" track-by="$index">{{item.categName}}</option>
        </select>
    </div>

</template>
<script>
    export default {
        props:{
            categId1:{
                type:null,
                default:'',
                twoWay:true
            },
            categId2:{
                type:null,
                default:'',
                twoWay:true
            },
            categId3:{
                type:null,
                default:'',
                twoWay:true
            }
        },
        data:function(){
            return {
                data:[]
            }
        },
        ready: function () {
           this.getCategInfo();
        },
        methods: {
            //获取所有分类
            getCategInfo(){
                var self=this;
                var data = {
                    "code": 1000,
                    "data": [{
                        "categId": 1,
                        "categName": "化妆品",
                        "childCategList": [{
                            "categId": 12,
                            "categName": "彩妆",
                            "childCategList": [{"categId": 127, "categName": "粉饼/散粉"}, {
                                "categId": 128,
                                "categName": "唇部"
                            }, {"categId": 129, "categName": "睫毛"}, {
                                "categId": 130,
                                "categName": "美甲"
                            }, {"categId": 131, "categName": "隔离"}, {
                                "categId": 132,
                                "categName": "眉部"
                            }, {"categId": 133, "categName": "底妆"}, {
                                "categId": 134,
                                "categName": "遮瑕/修容"
                            }, {"categId": 135, "categName": "防晒"}, {
                                "categId": 136,
                                "categName": "卸妆"
                            }, {"categId": 137, "categName": "腮红"}, {
                                "categId": 138,
                                "categName": "彩妆套装"
                            }, {"categId": 139, "categName": "眼部"}, {"categId": 496, "categName": "眼部2"}]
                        }, {
                            "categId": 13,
                            "categName": "面部护肤",
                            "childCategList": [{"categId": 140, "categName": "眼部护理"}, {
                                "categId": 141,
                                "categName": "精油"
                            }, {"categId": 142, "categName": "护肤套装"}, {
                                "categId": 143,
                                "categName": "精华"
                            }, {"categId": 144, "categName": "面膜"}, {
                                "categId": 145,
                                "categName": "面霜"
                            }, {"categId": 146, "categName": "唇部护理"}, {
                                "categId": 147,
                                "categName": "洁面"
                            }, {"categId": 148, "categName": "T区/特殊护理"}, {
                                "categId": 149,
                                "categName": "啫哩/凝露/凝胶"
                            }, {"categId": 150, "categName": "化妆水/爽肤水"}, {"categId": 488, "categName": "卸妆"}]
                        }, {
                            "categId": 14,
                            "categName": "身体护理",
                            "childCategList": [{"categId": 151, "categName": "个人护理"}, {
                                "categId": 152,
                                "categName": "润肤"
                            }, {"categId": 153, "categName": "纤体/美体"}, {
                                "categId": 154,
                                "categName": "护发"
                            }, {"categId": 155, "categName": "沐浴"}, {
                                "categId": 156,
                                "categName": "洗发"
                            }, {"categId": 157, "categName": "美发造型"}, {
                                "categId": 158,
                                "categName": "沐浴"
                            }, {"categId": 159, "categName": "口腔护理"}, {
                                "categId": 160,
                                "categName": "颈部护理"
                            }, {"categId": 161, "categName": "手足护理"}]
                        }, {
                            "categId": 15,
                            "categName": "男士护理",
                            "childCategList": [{"categId": 162, "categName": "男士护肤"}, {
                                "categId": 163,
                                "categName": "男士身体护理"
                            }, {"categId": 164, "categName": "男士套装"}]
                        }, {
                            "categId": 16,
                            "categName": "香水",
                            "childCategList": [{"categId": 165, "categName": "女士香水"}, {
                                "categId": 166,
                                "categName": "男士香水"
                            }, {"categId": 167, "categName": "中性香水"}, {
                                "categId": 168,
                                "categName": "Q版香水"
                            }, {"categId": 169, "categName": "香水套装"}]
                        }, {
                            "categId": 17,
                            "categName": "美容工具",
                            "childCategList": [{"categId": 170, "categName": "护肤工具"}, {
                                "categId": 171,
                                "categName": "彩妆工具"
                            }, {"categId": 172, "categName": "美发工具"}, {
                                "categId": 173,
                                "categName": "美体工具"
                            }, {"categId": 174, "categName": "美甲工具"}, {"categId": 175, "categName": "其他美容工具"}]
                        }, {
                            "categId": 18,
                            "categName": "其他",
                            "childCategList": [{"categId": 176, "categName": "喜从盒来"}, {
                                "categId": 177,
                                "categName": "会员生日礼包"
                            }]
                        }, {
                            "categId": 19,
                            "categName": "套装礼盒",
                            "childCategList": [{"categId": 178, "categName": "小样/旅行套装"}]
                        }, {
                            "categId": 179,
                            "categName": "口腔护理",
                            "childCategList": [{"categId": 180, "categName": "牙刷"}, {
                                "categId": 181,
                                "categName": "牙膏"
                            }, {"categId": 182, "categName": "漱口水"}, {"categId": 183, "categName": "牙线"}]
                        }]
                    }, {
                        "categId": 2,
                        "categName": "食品保健",
                        "childCategList": [{
                            "categId": 60,
                            "categName": "瘦身类",
                            "childCategList": [{"categId": 379, "categName": "左旋肉碱"}, {
                                "categId": 380,
                                "categName": "纤体食品"
                            }, {"categId": 381, "categName": "代餐"}]
                        }, {
                            "categId": 61,
                            "categName": "保健类",
                            "childCategList": [{"categId": 382, "categName": "基础保健"}, {
                                "categId": 383,
                                "categName": "女性调养"
                            }]
                        }, {
                            "categId": 62,
                            "categName": "美容类",
                            "childCategList": [{"categId": 384, "categName": "胶原蛋白"}, {
                                "categId": 385,
                                "categName": "丰胸食品"
                            }]
                        }, {
                            "categId": 63,
                            "categName": "食品类",
                            "childCategList": [{"categId": 386, "categName": "食品"}, {"categId": 387, "categName": "冲饮"}]
                        }, {
                            "categId": 64,
                            "categName": "中外名酒",
                            "childCategList": [{"categId": 388, "categName": "白酒"}, {
                                "categId": 389,
                                "categName": "葡萄酒"
                            }, {"categId": 390, "categName": "洋酒"}, {"categId": 391, "categName": "啤酒"}]
                        }, {
                            "categId": 65,
                            "categName": "进口食品",
                            "childCategList": [{"categId": 392, "categName": "牛奶"}, {
                                "categId": 393,
                                "categName": "饼干蛋糕"
                            }, {"categId": 394, "categName": "糖果/巧克力"}, {
                                "categId": 395,
                                "categName": "休闲零食"
                            }, {"categId": 396, "categName": "冲调饮品"}, {"categId": 397, "categName": "粮油调味"}]
                        }, {
                            "categId": 66,
                            "categName": "茗茶",
                            "childCategList": [{"categId": 398, "categName": "铁观音"}, {
                                "categId": 399,
                                "categName": "普洱"
                            }, {"categId": 400, "categName": "龙井"}, {
                                "categId": 401,
                                "categName": "绿茶"
                            }, {"categId": 402, "categName": "红茶"}, {
                                "categId": 403,
                                "categName": "乌龙茶"
                            }, {"categId": 404, "categName": "花草茶"}, {
                                "categId": 405,
                                "categName": "花果茶"
                            }, {"categId": 406, "categName": "黑茶"}, {
                                "categId": 407,
                                "categName": "白茶"
                            }, {"categId": 408, "categName": "养生茶"}, {"categId": 409, "categName": "其他茶"}]
                        }, {
                            "categId": 67,
                            "categName": "饮料冲调",
                            "childCategList": [{"categId": 410, "categName": "牛奶乳品"}, {
                                "categId": 411,
                                "categName": "饮料"
                            }, {"categId": 412, "categName": "饮用水"}, {
                                "categId": 413,
                                "categName": "咖啡/奶茶"
                            }, {"categId": 414, "categName": "蜂蜜/柚子茶"}, {"categId": 415, "categName": "冲饮谷物"}]
                        }, {
                            "categId": 68,
                            "categName": "粮油调味",
                            "childCategList": [{"categId": 416, "categName": "米面杂粮"}, {
                                "categId": 417,
                                "categName": "食用油"
                            }, {"categId": 418, "categName": "有机食品"}, {
                                "categId": 419,
                                "categName": "调味品"
                            }, {"categId": 420, "categName": "南北干货"}, {"categId": 421, "categName": "方便食品"}]
                        }, {
                            "categId": 69,
                            "categName": "生鲜食品",
                            "childCategList": [{"categId": 422, "categName": "水果蔬菜"}, {
                                "categId": 423,
                                "categName": "海鲜水产"
                            }, {"categId": 424, "categName": "海参"}, {
                                "categId": 425,
                                "categName": "牛排"
                            }, {"categId": 426, "categName": "肉禽蛋奶"}, {
                                "categId": 427,
                                "categName": "熟食腊味"
                            }, {"categId": 428, "categName": "环球美食"}, {"categId": 429, "categName": "产地直供"}]
                        }, {
                            "categId": 70,
                            "categName": "食品礼券",
                            "childCategList": [{"categId": 430, "categName": "大闸蟹"}, {
                                "categId": 431,
                                "categName": "粽子"
                            }, {"categId": 432, "categName": "月饼"}, {"categId": 433, "categName": "卡券"}]
                        }]
                    }, {
                        "categId": 3,
                        "categName": "礼品箱包",
                        "childCategList": [{
                            "categId": 27,
                            "categName": "钱包/卡包",
                            "childCategList": [{"categId": 212, "categName": "钱包"}, {
                                "categId": 213,
                                "categName": "化妆包"
                            }, {"categId": 214, "categName": "钥匙包"}, {
                                "categId": 215,
                                "categName": "零钱包"
                            }, {"categId": 216, "categName": "卡包"}]
                        }, {
                            "categId": 28,
                            "categName": "单肩包/挎包/手包",
                            "childCategList": [{"categId": 217, "categName": "女包"}, {"categId": 218, "categName": "男包"}]
                        }, {
                            "categId": 29,
                            "categName": "双肩背包",
                            "childCategList": [{"categId": 219, "categName": "休闲"}, {"categId": 220, "categName": "学生"}]
                        }, {
                            "categId": 30,
                            "categName": "功能箱包",
                            "childCategList": [{"categId": 221, "categName": "腰包"}, {
                                "categId": 222,
                                "categName": "洗漱包"
                            }, {"categId": 223, "categName": "手机包/壳"}, {"categId": 224, "categName": "IPAD保护套"}]
                        }, {
                            "categId": 31,
                            "categName": "旅行箱包及配件",
                            "childCategList": [{"categId": 225, "categName": "旅行箱"}, {
                                "categId": 226,
                                "categName": "旅行包"
                            }, {"categId": 227, "categName": "旅行包套装"}, {"categId": 228, "categName": "旅行配件"}]
                        }, {
                            "categId": 32,
                            "categName": "商务公文包",
                            "childCategList": [{"categId": 229, "categName": "文件包"}, {
                                "categId": 230,
                                "categName": "证件夹"
                            }, {"categId": 231, "categName": "名片夹"}]
                        }, {
                            "categId": 33,
                            "categName": "电脑包/摄影包",
                            "childCategList": [{"categId": 232, "categName": "电脑包"}, {
                                "categId": 233,
                                "categName": "摄影/摄像包"
                            }]
                        }]
                    }, {
                        "categId": 4,
                        "categName": "运动户外",
                        "childCategList": [{
                            "categId": 76,
                            "categName": "运动",
                            "childCategList": [{"categId": 185, "categName": "运动服装"}, {
                                "categId": 186,
                                "categName": "运动鞋包"
                            }, {"categId": 187, "categName": "运动器械"}, {
                                "categId": 465,
                                "categName": "运动鞋"
                            }, {"categId": 466, "categName": "运动袜"}, {
                                "categId": 467,
                                "categName": "运动服"
                            }, {"categId": 468, "categName": "运动裤"}, {
                                "categId": 469,
                                "categName": "运动包"
                            }, {"categId": 470, "categName": "运动器械"}, {
                                "categId": 471,
                                "categName": "运动用品"
                            }, {"categId": 472, "categName": "泳装"}, {
                                "categId": 473,
                                "categName": "游泳用品"
                            }, {"categId": 474, "categName": "瑜伽服装"}, {"categId": 475, "categName": "瑜伽用品"}]
                        }, {
                            "categId": 77,
                            "categName": "户外",
                            "childCategList": [{"categId": 188, "categName": "户外鞋服"}, {
                                "categId": 189,
                                "categName": "户外装备"
                            }, {"categId": 190, "categName": "户外用品"}, {
                                "categId": 476,
                                "categName": "户外鞋"
                            }, {"categId": 477, "categName": "户外服装"}, {
                                "categId": 478,
                                "categName": "户外配件"
                            }, {"categId": 479, "categName": "户外装备"}, {"categId": 480, "categName": "户外包"}]
                        }]
                    }, {
                        "categId": 5,
                        "categName": "饰品配饰",
                        "childCategList": [{
                            "categId": 71,
                            "categName": "珠宝黄金",
                            "childCategList": [{"categId": 434, "categName": "手链/手镯"}, {
                                "categId": 435,
                                "categName": "项链/吊坠"
                            }, {"categId": 436, "categName": "戒指"}, {"categId": 437, "categName": "耳环"}]
                        }, {
                            "categId": 72,
                            "categName": "时尚饰品",
                            "childCategList": [{"categId": 438, "categName": "手链/手镯"}, {
                                "categId": 439,
                                "categName": "项链/吊坠"
                            }, {"categId": 440, "categName": "胸针"}, {
                                "categId": 441,
                                "categName": "毛衣链"
                            }, {"categId": 442, "categName": "戒指"}, {
                                "categId": 443,
                                "categName": "耳饰"
                            }, {"categId": 444, "categName": "头饰"}, {
                                "categId": 445,
                                "categName": "镜子"
                            }, {"categId": 446, "categName": "挂件/摆件"}, {
                                "categId": 447,
                                "categName": "脚链"
                            }, {"categId": 448, "categName": "首饰盒"}]
                        }, {
                            "categId": 73,
                            "categName": "配饰",
                            "childCategList": [{"categId": 449, "categName": "手表"}, {
                                "categId": 450,
                                "categName": "眼镜"
                            }, {"categId": 451, "categName": "腰带"}, {
                                "categId": 452,
                                "categName": "帽子"
                            }, {"categId": 453, "categName": "围巾"}, {"categId": 454, "categName": "手套"}]
                        }]
                    }, {
                        "categId": 6,
                        "categName": "家居",
                        "childCategList": [{
                            "categId": 20,
                            "categName": "3C数码",
                            "childCategList": [{"categId": 78, "categName": "3C配件"}, {
                                "categId": 79,
                                "categName": "厨房电器"
                            }, {"categId": 80, "categName": "生活电器"}, {
                                "categId": 81,
                                "categName": "影音电器"
                            }, {"categId": 82, "categName": "护理按摩"}, {"categId": 83, "categName": "灯具"}, {
                                "categId": 84,
                                "categName": "手机"
                            }, {"categId": 85, "categName": "电脑"}, {"categId": 86, "categName": "数码相机"}]
                        }, {
                            "categId": 21,
                            "categName": "厨具",
                            "childCategList": [{"categId": 87, "categName": "烹饪锅具"}, {
                                "categId": 88,
                                "categName": "烹饪工具"
                            }, {"categId": 89, "categName": "收纳保鲜"}, {
                                "categId": 90,
                                "categName": "水具酒具"
                            }, {"categId": 91, "categName": "餐具"}]
                        }, {
                            "categId": 22,
                            "categName": "家居日用",
                            "childCategList": [{"categId": 92, "categName": "打火机"}, {
                                "categId": 93,
                                "categName": "瑞士军刀"
                            }, {"categId": 94, "categName": "指甲剪"}, {
                                "categId": 95,
                                "categName": "收纳用品"
                            }, {"categId": 96, "categName": "雨伞雨具"}, {
                                "categId": 97,
                                "categName": "卫浴用品"
                            }, {"categId": 98, "categName": "净化除味"}, {"categId": 99, "categName": "家居饰品"}]
                        }, {
                            "categId": 23,
                            "categName": "汽车用品",
                            "childCategList": [{"categId": 100, "categName": "电子电器"}, {
                                "categId": 101,
                                "categName": "汽车美容"
                            }, {"categId": 102, "categName": "座垫脚垫"}, {
                                "categId": 103,
                                "categName": "内饰精品"
                            }, {"categId": 104, "categName": "安全自驾"}]
                        }, {
                            "categId": 24,
                            "categName": "宠物用品",
                            "childCategList": [{"categId": 105, "categName": "宠物主粮"}, {
                                "categId": 106,
                                "categName": "宠物零食"
                            }, {"categId": 107, "categName": "营养品"}, {
                                "categId": 108,
                                "categName": "宠物家居"
                            }, {"categId": 109, "categName": "玩具服饰"}, {
                                "categId": 110,
                                "categName": "出行装备"
                            }, {"categId": 111, "categName": "医护美容"}]
                        }, {
                            "categId": 25,
                            "categName": "清洁用品",
                            "childCategList": [{"categId": 112, "categName": "纸品湿巾"}, {
                                "categId": 113,
                                "categName": "清洁工具"
                            }, {"categId": 114, "categName": "居室清洁"}, {
                                "categId": 115,
                                "categName": "衣物清洁"
                            }, {"categId": 116, "categName": "驱虫用品"}]
                        }, {
                            "categId": 26,
                            "categName": "家纺",
                            "childCategList": [{"categId": 117, "categName": "被子"}, {
                                "categId": 118,
                                "categName": "床品套件"
                            }, {"categId": 119, "categName": "婚庆件套"}, {
                                "categId": 120,
                                "categName": "儿童套件"
                            }, {"categId": 121, "categName": "枕头/枕芯"}, {
                                "categId": 122,
                                "categName": "凉席/凉席套件"
                            }, {"categId": 123, "categName": "蚊帐/床幔"}, {
                                "categId": 124,
                                "categName": "毛毯/休闲毯"
                            }, {"categId": 125, "categName": "枕套/枕巾"}, {"categId": 126, "categName": "毛巾家纺"}]
                        }]
                    }, {
                        "categId": 7,
                        "categName": "母婴健康",
                        "childCategList": [{
                            "categId": 34,
                            "categName": "奶粉",
                            "childCategList": [{"categId": 199, "categName": "婴儿奶粉"}, {
                                "categId": 200,
                                "categName": "孕妇奶粉"
                            }, {"categId": 234, "categName": "妈妈奶粉"}, {
                                "categId": 235,
                                "categName": "特殊配方奶粉"
                            }, {"categId": 236, "categName": "1段奶粉"}, {
                                "categId": 237,
                                "categName": "2段奶粉"
                            }, {"categId": 238, "categName": "3段奶粉"}, {
                                "categId": 239,
                                "categName": "4段奶粉"
                            }, {"categId": 240, "categName": "羊奶粉"}]
                        }, {
                            "categId": 35,
                            "categName": "营养辅食",
                            "childCategList": [{"categId": 191, "categName": "米粉/菜粉"}, {
                                "categId": 192,
                                "categName": "果泥/果汁"
                            }, {"categId": 193, "categName": "益生菌"}, {
                                "categId": 194,
                                "categName": "DHA"
                            }, {"categId": 195, "categName": "维生素"}, {
                                "categId": 196,
                                "categName": "面条"
                            }, {"categId": 197, "categName": "零食"}, {
                                "categId": 198,
                                "categName": "清火/开胃"
                            }, {"categId": 241, "categName": "婴幼营养"}, {
                                "categId": 242,
                                "categName": "初乳"
                            }, {"categId": 243, "categName": "辅食"}, {
                                "categId": 244,
                                "categName": "孕期营养"
                            }, {"categId": 245, "categName": "营养品"}]
                        }, {
                            "categId": 36,
                            "categName": "尿裤湿巾",
                            "childCategList": [{"categId": 201, "categName": "纸尿裤"}, {
                                "categId": 202,
                                "categName": "拉拉裤"
                            }, {"categId": 203, "categName": "湿纸巾"}, {
                                "categId": 204,
                                "categName": "纸巾"
                            }, {"categId": 205, "categName": "成人尿裤"}, {
                                "categId": 246,
                                "categName": "纸尿裤"
                            }, {"categId": 247, "categName": "拉拉裤"}, {
                                "categId": 248,
                                "categName": "湿巾"
                            }, {"categId": 249, "categName": "尿布/尿垫"}, {"categId": 250, "categName": "成人尿裤"}]
                        }, {
                            "categId": 37,
                            "categName": "洗护用品",
                            "childCategList": [{"categId": 206, "categName": "护发/洗发/沐浴"}, {
                                "categId": 207,
                                "categName": "清洗"
                            }, {"categId": 208, "categName": "驱蚊防晒"}, {
                                "categId": 209,
                                "categName": "洗衣液/皂"
                            }, {"categId": 210, "categName": "口腔清洁"}, {
                                "categId": 211,
                                "categName": "座便器"
                            }, {"categId": 251, "categName": "宝宝护肤"}, {
                                "categId": 252,
                                "categName": "洗浴用品"
                            }, {"categId": 253, "categName": "洗发沐浴"}, {"categId": 254, "categName": "护理用品"}]
                        }, {
                            "categId": 38,
                            "categName": "童车童床",
                            "childCategList": [{"categId": 255, "categName": "婴儿推车"}, {
                                "categId": 256,
                                "categName": "餐椅摇椅"
                            }, {"categId": 257, "categName": "婴儿床"}, {
                                "categId": 258,
                                "categName": "学步车"
                            }, {"categId": 259, "categName": "三轮车"}, {
                                "categId": 260,
                                "categName": "自行车"
                            }, {"categId": 261, "categName": "电动车"}, {
                                "categId": 262,
                                "categName": "健身车"
                            }, {"categId": 263, "categName": "安全座椅"}]
                        }, {
                            "categId": 39,
                            "categName": "喂养用品",
                            "childCategList": [{"categId": 264, "categName": "奶瓶"}, {
                                "categId": 265,
                                "categName": "奶嘴"
                            }, {"categId": 266, "categName": "吸奶器"}, {
                                "categId": 267,
                                "categName": "暖奶/消毒"
                            }, {"categId": 268, "categName": "餐具"}, {
                                "categId": 269,
                                "categName": "水具"
                            }, {"categId": 270, "categName": "牙胶/安抚"}, {
                                "categId": 271,
                                "categName": "口水巾/罩衣"
                            }, {"categId": 272, "categName": "辅食料理器"}, {"categId": 273, "categName": "辅助用品"}]
                        }, {
                            "categId": 40,
                            "categName": "玩具",
                            "childCategList": [{"categId": 274, "categName": "遥控电动"}, {
                                "categId": 275,
                                "categName": "毛绒布艺"
                            }, {"categId": 276, "categName": "模型玩具"}, {
                                "categId": 277,
                                "categName": "健身玩具"
                            }, {"categId": 278, "categName": "动漫玩具"}, {
                                "categId": 279,
                                "categName": "益智玩具"
                            }, {"categId": 280, "categName": "积木拼插"}, {
                                "categId": 281,
                                "categName": "DIY玩具"
                            }, {"categId": 282, "categName": "创意减压"}, {
                                "categId": 283,
                                "categName": "乐器相关"
                            }, {"categId": 284, "categName": "纪念品"}, {"categId": 285, "categName": "安全防护"}]
                        }, {
                            "categId": 41,
                            "categName": "童装童鞋",
                            "childCategList": [{"categId": 286, "categName": "婴幼儿纺织品"}, {
                                "categId": 287,
                                "categName": "童装上装"
                            }, {"categId": 288, "categName": "童装下装"}, {
                                "categId": 289,
                                "categName": "儿童内衣裤"
                            }, {"categId": 290, "categName": "童鞋"}, {
                                "categId": 291,
                                "categName": "亲子装"
                            }, {"categId": 292, "categName": "泳装"}, {"categId": 293, "categName": "配饰"}]
                        }, {
                            "categId": 42,
                            "categName": "妈妈专区",
                            "childCategList": [{"categId": 184, "categName": "妈咪包"}, {
                                "categId": 294,
                                "categName": "包/背婴带"
                            }, {"categId": 295, "categName": "产后塑身"}, {
                                "categId": 296,
                                "categName": "防辐射服"
                            }, {"categId": 297, "categName": "孕妇食品"}, {
                                "categId": 298,
                                "categName": "妈妈护理"
                            }, {"categId": 299, "categName": "孕妇内衣"}, {
                                "categId": 300,
                                "categName": "孕妇装"
                            }, {"categId": 301, "categName": "产妇卫生巾/湿巾"}, {
                                "categId": 302,
                                "categName": "哺乳枕"
                            }, {"categId": 303, "categName": "妈妈美容"}]
                        }, {
                            "categId": 43,
                            "categName": "图书音像",
                            "childCategList": [{"categId": 304, "categName": "图书"}, {"categId": 305, "categName": "音像"}]
                        }, {
                            "categId": 44,
                            "categName": "儿童寝具",
                            "childCategList": [{"categId": 306, "categName": "儿童凉席"}, {
                                "categId": 307,
                                "categName": "儿童枕"
                            }, {"categId": 308, "categName": "毯子/毛巾被"}, {
                                "categId": 309,
                                "categName": "蚊帐"
                            }, {"categId": 310, "categName": "睡袋"}]
                        }, {
                            "categId": 45,
                            "categName": "健康护理",
                            "childCategList": [{"categId": 311, "categName": "安全避孕"}, {
                                "categId": 312,
                                "categName": "验孕测孕"
                            }, {"categId": 313, "categName": "女性玩具"}, {
                                "categId": 314,
                                "categName": "男性玩具"
                            }, {"categId": 315, "categName": "私处保养"}, {
                                "categId": 316,
                                "categName": "润滑液"
                            }, {"categId": 317, "categName": "情趣内衣"}]
                        }]
                    }, {
                        "categId": 8,
                        "categName": "男士",
                        "childCategList": [{
                            "categId": 46,
                            "categName": "下装",
                            "childCategList": [{"categId": 318, "categName": "牛仔裤"}]
                        }, {
                            "categId": 47,
                            "categName": "外套",
                            "childCategList": [{"categId": 319, "categName": "羽绒服"}, {
                                "categId": 320,
                                "categName": "夹克"
                            }]
                        }, {"categId": 497, "categName": "上衣", "childCategList": [{"categId": 498, "categName": "卫衣"}]}]
                    }, {
                        "categId": 9,
                        "categName": "女装",
                        "childCategList": [{
                            "categId": 56,
                            "categName": "上装",
                            "childCategList": [{"categId": 358, "categName": "T恤"}, {
                                "categId": 359,
                                "categName": "衬衫"
                            }, {"categId": 360, "categName": "雪纺衫"}, {
                                "categId": 361,
                                "categName": "毛衣"
                            }, {"categId": 362, "categName": "马夹"}, {
                                "categId": 363,
                                "categName": "吊带/背心"
                            }, {"categId": 364, "categName": "卫衣/绒衫"}]
                        }, {
                            "categId": 57,
                            "categName": "裙装",
                            "childCategList": [{"categId": 365, "categName": "连衣裙"}, {
                                "categId": 366,
                                "categName": "短裙"
                            }, {"categId": 367, "categName": "牛仔裤"}, {
                                "categId": 368,
                                "categName": "长裤"
                            }, {"categId": 369, "categName": "短裤/热裤"}, {"categId": 370, "categName": "打底裤"}]
                        }, {
                            "categId": 58,
                            "categName": "外套",
                            "childCategList": [{"categId": 371, "categName": "小西装"}, {
                                "categId": 372,
                                "categName": "短外套"
                            }, {"categId": 373, "categName": "风衣"}, {
                                "categId": 374,
                                "categName": "羽绒服"
                            }, {"categId": 375, "categName": "毛呢外套"}, {
                                "categId": 376,
                                "categName": "棉衣棉服"
                            }, {"categId": 377, "categName": "皮衣"}]
                        }, {
                            "categId": 59,
                            "categName": "婚纱/礼服",
                            "childCategList": [{"categId": 378, "categName": "婚纱/礼服"}]
                        }]
                    }, {
                        "categId": 10,
                        "categName": "内衣",
                        "childCategList": [{
                            "categId": 48,
                            "categName": "文胸",
                            "childCategList": [{"categId": 321, "categName": "聚拢文胸"}, {
                                "categId": 322,
                                "categName": "光面文胸"
                            }, {"categId": 323, "categName": "调整型文胸"}, {
                                "categId": 324,
                                "categName": "少女文胸"
                            }, {"categId": 325, "categName": "无钢托运动文胸"}, {
                                "categId": 326,
                                "categName": "硅胶隐形文胸"
                            }, {"categId": 327, "categName": "情趣性感文胸"}, {"categId": 328, "categName": "抹胸"}]
                        }, {
                            "categId": 49,
                            "categName": "内裤",
                            "childCategList": [{"categId": 329, "categName": "女士内裤"}, {
                                "categId": 330,
                                "categName": "男士内裤"
                            }, {"categId": 331, "categName": "情侣内裤"}, {"categId": 332, "categName": "星期裤"}]
                        }, {
                            "categId": 50,
                            "categName": "睡衣/家居服",
                            "childCategList": [{"categId": 333, "categName": "睡衣套装"}, {
                                "categId": 334,
                                "categName": "睡袍/浴袍"
                            }, {"categId": 335, "categName": "睡裙/家居裙"}, {
                                "categId": 336,
                                "categName": "睡裤/家居裤"
                            }, {"categId": 337, "categName": "睡衣上装"}]
                        }, {
                            "categId": 51,
                            "categName": "保暖内衣",
                            "childCategList": [{"categId": 338, "categName": "保暖套装"}, {
                                "categId": 339,
                                "categName": "保暖裤"
                            }, {"categId": 340, "categName": "打底裤"}, {"categId": 341, "categName": "黄金甲"}]
                        }, {
                            "categId": 52,
                            "categName": "袜子",
                            "childCategList": [{"categId": 342, "categName": "丝袜"}, {
                                "categId": 343,
                                "categName": "棉袜"
                            }, {"categId": 344, "categName": "美腿塑形袜"}]
                        }, {
                            "categId": 53,
                            "categName": "塑身/美体",
                            "childCategList": [{"categId": 345, "categName": "塑身裤"}, {
                                "categId": 346,
                                "categName": "塑身上衣"
                            }, {"categId": 347, "categName": "塑身连体衣"}, {
                                "categId": 348,
                                "categName": "塑身分体套装"
                            }, {"categId": 349, "categName": "塑身腰封/腰夹"}]
                        }, {
                            "categId": 54,
                            "categName": "基础内衣",
                            "childCategList": [{"categId": 350, "categName": "吊带背心"}, {
                                "categId": 351,
                                "categName": "打底抹胸"
                            }, {"categId": 352, "categName": "肚兜"}]
                        }, {
                            "categId": 55,
                            "categName": "内衣配件",
                            "childCategList": [{"categId": 353, "categName": "文胸插片/胸垫"}, {
                                "categId": 354,
                                "categName": "乳贴"
                            }, {"categId": 355, "categName": "肩带"}, {
                                "categId": 356,
                                "categName": "搭扣"
                            }, {"categId": 357, "categName": "吊袜带"}]
                        }]
                    }, {
                        "categId": 11,
                        "categName": "鞋类",
                        "childCategList": [{
                            "categId": 74,
                            "categName": "男鞋",
                            "childCategList": [{"categId": 455, "categName": "商务正装"}, {
                                "categId": 456,
                                "categName": "商务休闲"
                            }, {"categId": 457, "categName": "日常休闲"}, {"categId": 458, "categName": "运动休闲"}]
                        }, {
                            "categId": 75,
                            "categName": "女鞋",
                            "childCategList": [{"categId": 459, "categName": "清凉凉鞋"}, {
                                "categId": 460,
                                "categName": "舒适凉拖"
                            }, {"categId": 461, "categName": "时尚单鞋"}, {
                                "categId": 462,
                                "categName": "休闲帆布鞋"
                            }, {"categId": 463, "categName": "魅力女靴"}, {"categId": 464, "categName": "特色市场"}]
                        }]
                    }, {
                        "categId": 481,
                        "categName": "电脑、办公1",
                        "childCategList": [{
                            "categId": 482,
                            "categName": "学生文具",
                            "childCategList": [{"categId": 485, "categName": "钢笔"}, {
                                "categId": 486,
                                "categName": "中性笔"
                            }, {"categId": 487, "categName": "学习本册"}]
                        }, {"categId": 483, "categName": "办公文具", "childCategList": []}, {
                            "categId": 484,
                            "categName": "纸类",
                            "childCategList": []
                        }]
                    }, {
                        "categId": 489,
                        "categName": "玻璃制品",
                        "childCategList": [{
                            "categId": 490,
                            "categName": "圣诞",
                            "childCategList": [{"categId": 493, "categName": "姜饼2"}]
                        }]
                    }, {"categId": 491, "categName": "电脑、办公", "childCategList": []}, {
                        "categId": 492,
                        "categName": "数码电子",
                        "childCategList": [{
                            "categId": 494,
                            "categName": "音频播放",
                            "childCategList": [{"categId": 495, "categName": "MP3、录音笔"}]
                        }]
                    }, {
                        "categId": 499,
                        "categName": "设备物品",
                        "childCategList": [{
                            "categId": 500,
                            "categName": "电动",
                            "childCategList": [{"categId": 501, "categName": "切割机"}]
                        }]
                    }],
                    "desc": "成功",
                    "tid": "6e42ce0e-e1e7-4b32-add8-8ea7069f840f"
                }
                self.data=data.data;
                /*common.ajax({
                    url:config.baseApi+"scm-purchase/api/purchare/getCategInfo",
                    type: "post",
                    data:"",
                    success(data){
                        self.data=data.data;
                        console.log(JSON.stringify(data));
                    }
                })*/
            }
        },
        watch:{
            categId1:function(val,oldval){
                if(val!==oldval){
                    this.categId2=''
                }
            },
            categId2:function(val,oldval){
                if(val!==oldval){
                    this.categId3=''
                }
            }
        },
        computed:{
            categId1s:function(){
                var data=this.data;
                if(!data) return;
                var c=[];
                for(var i in data){
                    c.push({
                        categName:data[i].categName,
                        categId:data[i].categId
                    });
                }
                return c;
            },
            categId2s:function(){
                var self=this;
                var data=this.data;
                if(!self.data || !self.categId1)
                    return;
                var d=[];
                for(var i=0;i<data.length;i++){
                    if(data[i].categId==self.categId1){
                        d=data[i].childCategList;
                    }
                }
                var c=[];
                for(var j in d){
                    c.push(
                        {
                            categName:d[j].categName,
                            categId:d[j].categId
                        }
                    );
                }
                return c;
            },
            categId3s:function(){
                var self=this;
                var data=this.data;
                if(!this.data ||!this.categId2)
                    return;
                var c=[];
                var d=[];
                for(var i=0;i<data.length;i++){
                    for(var n=0;n<data[i].childCategList.length;n++){
                        if(data[i].childCategList[n].categId==self.categId2){
                            d=data[i].childCategList[n].childCategList;
                        }
                    }
                }
                for(var k in d){
                    c.push(
                        {
                            categName:d[k].categName,
                            categId:d[k].categId
                        }
                    );
                }
                return c;
            }
        }
    }

</script>